

package com.kimo.shop.user.comment.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.kimo.shop.bean.param.UserTagParam;
import com.kimo.shop.user.comment.model.UserTagUser;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 用户和标签关联表
 *
 * @author kimo-taozhouchuan
 * @date 2020-09-10 08:44:22
 */
public interface UserTagUserMapper extends BaseMapper<UserTagUser> {

    UserTagUser getByUserIdAndTagId(@Param("userId") String userId, @Param("userTagId") Long userTagId);

    Integer countByUserIdAndTagId(@Param("userId") String userId, @Param("userTagId") Long userTagId);

    List<UserTagParam> getUserTagsUserByUserId(@Param("userId") String userId);

    int removeByUserIdAndTagId(@Param("userId") String userId, @Param("userTagId") Long userTagId);
}
